import { defineStore } from 'pinia'
import { ref } from 'vue'
import UserData from '@/hook/user-api/userData'
import { store } from '@/stores'

export const useManagerStore = defineStore('manager', () => {
  let userData = new UserData({})
  const isLogin = ref(true)
  const isUpdate = ref(false)
  const isShow = ref(false)
  return { userData, isLogin, isUpdate, isShow }
})
export function useManagerStoreWithOut() {
  return useManagerStore(store)
}
